#pragma once

#include "Foundation.h"

class Bill : public Element {
public:
				Bill(ifstream &file);			// Constructor that reads from file
				Bill(bool readData=true);		// Constructor
	void 		WriteToFile(ofstream &file);	// Write to file
	void 		setData(string d, float s); 	// Set desc and sum
	string		GetDescription();				// Returns description
	float		GetSum();						// Returns sum
	virtual void display();

private:
	string		description;
	float		sum;
	
	void 		readInput();
};

